import typing
from sai import Item

class Pipeline:

    def open_spider(self, spider):
        pass

    def process_item(self, item: typing.Union[Item, dict], spider) -> typing.Union[Item, dict]:
        pass

    def close_spider(self, spider):
        pass
